package net.sansi.v3correctserver.entity.analyse;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by Fang
 * create time : 2024/11/1
 * IDE : IntelliJ IDEA
 * <p>
 * 矩形屏 相片分析结果
 */

public class PhotoAnalyseResult {
    private PhotoAnalyseResult() {}

    @Data
    @ApiModel("矩形屏相片分析结果")
    public static class Rect {

        @ApiModelProperty("横向间距")
        private Integer xDistance;

        @ApiModelProperty("纵向间距")
        private Integer yDistance;

        @ApiModelProperty("识别到的宽度（列数）")
        private Integer recWidth;

        @ApiModelProperty("识别到的高度（行数）")
        private Integer recHeight;

        @ApiModelProperty("暗点数量")
        private Integer empties;

        @ApiModelProperty("冲突点数量")
        private Integer conflicts;

        @ApiModelProperty("饱和度")
        private Double saturation;

        @ApiModelProperty("灯点面积（组成灯点的像素数量）")
        private Integer pixelArea;

        @ApiModelProperty("像素占比（灯点面积 / 采样面积")
        private Double pixelRatio;

        @ApiModelProperty("灯点亮度(中位数)")
        private Double ledBrightness;

        @ApiModelProperty("灯点像素平均亮度")
        private Double ledPixelAvgBrightness;

    }

}
